package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.DailyNews;
import cn.wolfcode.trip.base.domain.NewsContent;
import cn.wolfcode.trip.base.query.DailyNewsQuery;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDailyNewsService {

    DailyNews selectByPrimaryKey(Long id);

    List<DailyNews> selectAll();

    void saveOrUpdate(DailyNews news);

    PageInfo<DailyNews> queryForList(DailyNewsQuery qo);

    NewsContent getContentById(Long id);

    PageInfo<DailyNews> selectForApp(DailyNewsQuery qo); //查询index页面上的日报信息

    DailyNews selectByID(Long news_id); //查询详细信息

    PageInfo<DailyNews> selectByCatalog(DailyNewsQuery qo, Long id); //查询5篇相同类型的文章

    PageInfo<DailyNews> queryForDailyNews(QueryObject qo);
}